package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 仓库信息
 * </p>
 *
 * @author adrian
 * @since 2023-09-08
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sto_room")
@ApiModel(value = "StoRoom对象", description = "仓库信息")
public class StoRoom implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("仓库ID")
    @TableId(value = "sto_id", type = IdType.INPUT)
    private String stoId;

    @ApiModelProperty("仓库名称")
    private String stoName;

    @ApiModelProperty("仓库类型（ZY：直营（一级仓库）；JMS：加盟商（二级仓库））")
    private String stoType;

    @ApiModelProperty("仓库容量")
    private Integer stoCapacity;

    @ApiModelProperty("所属公司ID")
    private Long companyId;

    @ApiModelProperty("国家")
    private String country;

    @ApiModelProperty("省")
    private String province;

    @ApiModelProperty("市/州")
    private String city;

    @ApiModelProperty("县/区")
    private String area;

    @ApiModelProperty("镇/街道")
    private String town;

    @ApiModelProperty("详细地址（仓库地址）")
    private String address;

    @ApiModelProperty("经度")
    private String longitude;

    @ApiModelProperty("纬度")
    private String latitude;

    @ApiModelProperty("仓库照片")
    private String stoPicture;

    @ApiModelProperty("仓库头像（log）")
    private String stoLog;

    @ApiModelProperty(" 是否删除（0：存在；1：删除）")
    private Byte isDeleted;

    @ApiModelProperty("创建时间（建仓时间）")
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;
}
